package io.sage.common.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class FileName {
	
	
	/**
	 * 获取系统生成的文件名.
	 * @param suffix
	 * @return
	 */
	public static String getFileName(String suffix) {
    	String fileName = null;
        try {
        	SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
    		Date date = new Date();  
    	    String dateStringParse = sdf.format(date);  
        	String UUID = UUIDLongGenerator.getUUID();
        	fileName = dateStringParse+"/"+UUID+suffix;

        } catch (Exception e) {
        	e.printStackTrace();
        }
        return fileName;
    }

}
